

window.onload = function () {
    let info = getQuery("info");
    if (info == "noland"){
        $("errorDiv").innerHTML = "请登录";
    }
}

function land() {
    axios.get("/user/login",{
        params:{
            userName:$("userName").value,
            pwd:$("pwd").value
        }
    }).then(resp =>{
        if (resp.data == "ok"){
            location.href = "/index.html";
        }
        else {
            $("errorDiv").innerHTML = "登录失败";
        }
    })
}